package cz.muni.fi.pb138.avradiation.parser;

import java.io.File;
import java.io.FilenameFilter;

/**
 * CSV File filter
 * 
 * @author Andrej Kuročenko <kurochenko@mail.muni.cz>
 */
public class CSVFileNameFilter implements FilenameFilter {

    public static final String CSV_FILE_SUFFIX = ".csv";
    
    @Override
    public boolean accept(File dir, String name) {
        return name.endsWith(CSV_FILE_SUFFIX);
    }
    
}